package com.sxhuayuan.parking.controller.member;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sxhuayuan.parking.compenent.web.RespMessage;
import com.sxhuayuan.parking.service.MemberService;

@RestController("memberMemberController")
@RequestMapping("/member/member")
public class MemberController extends BaseController {

	@Resource(name = "memberServiceImpl")
	private MemberService memberService;

	@RequestMapping("/getinfo")
	public RespMessage get() {
		return RespMessage.builder().success().setDatas(memberService.getCurrent()).build();
	}
}